package com.tt.fashionWebSite.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by isoft-work 5 on 1/11/2015.
 */
public class SanPhamRuleDto implements Serializable {
   private String maSP;
   private String tenSP;
   private List<ChiTietSanPhamRuleDto> chiTietSanPhams;

   public SanPhamRuleDto() {}

   public SanPhamRuleDto(Object[] sanPhamRule) {
      chiTietSanPhams = new ArrayList<ChiTietSanPhamRuleDto>();

      if(sanPhamRule[0] != null) {
         this.maSP = sanPhamRule[0].toString();
      }
      if(sanPhamRule[1] != null) {
         this.tenSP = sanPhamRule[1].toString();
      }
   }

   public String getMaSP() {
      return maSP;
   }

   public void setMaSP(String maSP) {
      this.maSP = maSP;
   }

   public List<ChiTietSanPhamRuleDto> getChiTietSanPhams() {
      return chiTietSanPhams;
   }

   public void setChiTietSanPhams(List<ChiTietSanPhamRuleDto> chiTietSanPhams) {
      this.chiTietSanPhams = chiTietSanPhams;
   }

   public String getTenSP() {
      return tenSP;
   }

   public void setTenSP(String tenSP) {
      this.tenSP = tenSP;
   }
}
